package merchant

import (
	"crmeb-common/global"
)

// MerchantAddress 商户地址表
type MerchantAddress struct {
	global.BaseModel
	MerId int32 `json:"merId" gorm:"column=mer_id;comment:商户id"`

	ReceiverName string `json:"receiverName" gorm:"column=receiver_name;comment:收货人姓名"`

	ReceiverPhone string `json:"receiverPhone" gorm:"column=receiver_phone;comment:收货人电话"`

	Province string `json:"province" gorm:"column=province;comment:收货人所在省"`

	ProvinceId int32 `json:"provinceId" gorm:"column=province_id;comment:省份ID"`

	City string `json:"city" gorm:"column=city;comment:收货人所在市"`

	CityId int32 `json:"cityId" gorm:"column=city_id;comment:城市id"`

	District string `json:"district" gorm:"column=district;comment:收货人所在区/县"`

	DistrictId int32 `json:"districtId" gorm:"column=district_id;comment:区/县id"`

	Street string `json:"street" gorm:"column=street;comment:收货人所在街道"`

	Detail string `json:"detail" gorm:"column=detail;comment:收货人详细地址"`

	PostCode int32 `json:"postCode" gorm:"column=post_code;comment:邮编"`

	Longitude string `json:"longitude" gorm:"column=longitude;comment:经度"`

	Latitude string `json:"latitude" gorm:"column=latitude;comment:纬度"`

	IsDefault bool `json:"isDefault" gorm:"column=is_default;comment:是否默认"`

	IsShow bool `json:"isShow" gorm:"column=is_show;comment:是否开启"`
}
